﻿/**
 * see: 表字段中文对照表 Author ： yxl
 *      usefeaturelayer:false, //是否使用FeatureLayer,false则不针对此类加载要素图层 必设
		layerurl : "http://IP:6080/arcgis/rest/services/SLdata/CX2016new/FeatureServer/4",// FeatureLayer服务地址
		levelshow:true, //是否使用MapLayer,可以与usefeaturelayer同时为true表示在指定比例尺下显示MapLayer,其他比例尺显示FeatureLayer
		maplayerinfo:{
			serviceid:"XZJXMapServer", //MapLayerID  必设属性
			url:"http://IP:6080/arcgis/rest/services/SDDC/JettySddC/MapServer",// MapLayer服务地址
			sublyidx:0, //指明显隐的是子图层还是整个图层，-1表示整个图层，其他则表示url地图中的子图层编号
			level:10 //当FeatureLayer、MapLayer都使用时，不要将此属性设置为-1
		}, //如果levelshow为true,则此对象列表必设
		template : {
			"title" : "<p>${ZJMC}<p>",
			"content" : ""
		} //属性卡片模板，usefeaturelayer为true时有效
 */
var mapinfoTemplate = {
    geometryServiceUrl:"http://localhost:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer",
	LandFeatureLayer:{//外业拓展服务---旗子
		usefeaturelayer:true,
		selectField : "USERNAME",
		layerurl:"http://localhost:6080/arcgis/rest/services/SDDC/WYTZ/FeatureServer/0",
		levelshow:false,
		maplayerinfo:{},
		template:{
			"title" : "<p>${XMJD}</p><input type='range' value='100' min='0' max='100'></input>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
			    +"<tr><td>地块名称</td><td>${DKMC}</td></tr>"
				+ "<tr><td>地块编码</td><td>${DKBM}</td></tr><tr><td>项目阶段</td><td>${XMJD}</td></tr>"
				+ +"<tr><td style='width:60px;'>所在地区</td><td>${CS}${QJ}${ZJ}</td></tr>"
				+ "<tr><td>具体地址</td><td >${DZ}</td></tr>"
				+ "<tr><td>项目属性</td><td>${XMSX}</td></tr><tr><td>拓展方式</td><td>${TZFS}</td></tr>"
				+ "<tr><td>土规信息</td><td>${TGXX}</td></tr><tr><td>控规信息</td><td>${KGXX}</td></tr>"
				+ "<tr><td>现状建设</td><td>${XZJSXX}</td></tr><tr><td style='width:90px'>总面积(m²)</td><td>${ZYDMJ}</td></tr>"
				+ "<tr><td style='width:100px'>净用地面积(m²)</td><td>${JYDMJ}</td></tr><tr><td>容积率</td><td>${DKRJL}</td></tr>"
				+ "<tr><td>所有权</td><td>${SYQXX}</td></tr><tr><td>权属单位</td><td>${QSDW}</td></tr>"
				+ "<tr><td>规划证号</td><td>${GHZH}</td></tr>"+"<tr><td>国土证号</td><td>${GTZH}</td></tr>"
				+ "<tr><td>联系人属性</td><td>${LXRSX}</td></tr>"+"<tr><td>联系人姓名</td><td>${LXRXM}</td></tr>"
				+ "<tr><td>联系方式</td><td>${LXFS}</td></tr>"
				+ "<tr><td>保证金(万元)</td><td>${BZJ}</td></tr><tr><td>总地价(万元)</td><td>${ZDJ}</td></tr>"
				+ "<tr><td>登记日期</td><td>${DJRQ:DateFormat(datePattern:'yyyy-MM-dd ', selector:'date')}</td></tr><tr><td>地区公司</td><td>${DQGS}</td></tr>"
				+ "<tr><td>拓展事业部</td><td>${TZSYB}</td></tr><tr><td>拓展组</td><td>${TZZ}</td></tr>"
				+ "<tr><td>预计签约时间</td><td>${YJQYS:DateFormat(datePattern:'yyyy-MM-dd ', selector:'date')}</td></tr><tr><td>实际签约时间</td><td>${SJQYSJ:DateFormat(datePattern:'yyyy-MM-dd ', selector:'date')}</td></tr>"
				+ "<tr><td>预计获取时间</td><td>${YJHQSJ:DateFormat(datePattern:'yyyy-MM-dd ', selector:'date')}</td></tr><tr><td>实际获取时间</td><td>${SJHQSJ:DateFormat(datePattern:'yyyy-MM-dd ', selector:'date')}</td></tr>"
				+ "<tr><td>备注</td><td>${BZ}</td></tr>"+"<tr><td>登记人</td><td>${USERNAME}</td></tr>"+"</table>"
		},
		fieldmap : {
			"LANDNAME":"DKMC",
			"TYPE":"XMJD",
			"LANDBH" : "DKBM",
			"CITY" : "CS",
			"DISTRICT" : "QJ",
			"ZHENJIE" : "ZJ",
			"ADDRESS" : "DZ",
		    "PROJECTTYPE":"XMSX",
		    "EXPENDTYPE":"TZFS",
		    "TOTALAREA":"ZYDMJ",
		    "NETLANDAREA":"JYDMJ",
		    "TGXX":"TGXX",
		    "KGXX":"KGXX",
		    "XZJSXX":"XZJSXX",
		    "VOLUMERATIO":"DKRJL",
		    "OWNERSHIP":"SYQXX ",
		    "COMPANY":"QSDW",
		    "LICENCE":"GHZH",
		    "QSR":"QSR",
		    "QSRNAME":"LXRXM",
		    "TELL":"LXFS",
		    "BZJ":"BZJ",
		    "LANDVALUE":"ZDJ",
		    "BZ":"BZ"
		}	
	},
	LandFeatureLayerEdit:{//拓展备注服务--对旗子边界的备注
		usefeaturelayer:true,
		layerurl:"http://AnPengTao:6080/arcgis/rest/services/SDDC/LANDEXPAND_WEB/FeatureServer/0",
		selectField : "REGISTERUSER",
		levelshow:false,
		maplayerinfo:{},
		template: {
			"title" : "<p>地块信息</p>",
			"content" :"<table style='font-size:13px;' class='layerInfo'>"
				    +"<tr><td>地块名称</td><td>${LANDNAME}</td></tr>"
					+ "<tr><td>地块编码</td><td>${LANDBH}</td></tr><tr><td>项目类型</td><td>${TYPE}</td></tr>"
					+ +"<tr><td style='width:60px;'>所在地区</td><td>${CITY}${DISTRICT}${ZHENJIE}</td></tr>"
					+ "<tr><td>具体地址</td><td >${ADDRESS}</td></tr>"
					+ "<tr><td>项目属性</td><td>${PROJECTTYPE}</td></tr><tr><td>拓展方式</td><td>${EXPENDTYPE}</td></tr>"
					+ "<tr><td>土规信息</td><td>${TGXX}</td></tr><tr><td>控规信息</td><td>${KGXX}</td></tr>"
					+ "<tr><td>现状建设</td><td>${XZJSXX:NumberFormat}</td></tr><tr><td style='width:90px'>总面积(m²)</td><td>${TOTALAREA:NumberFormat}</td></tr>"
					+ "<tr><td style='width:100px'>净用地面积(m²)</td><td>${NETLANDAREA}</td></tr><tr><td>容积率</td><td>${VOLUMERATIO}</td></tr>"
					+ "<tr><td>所有权</td><td>${OWNERSHIP}</td></tr><tr><td>权属单位</td><td>${COMPANY}</td></tr>"
					+ "<tr><td>取得证照</td><td>${LICENCE}</td></tr>"
					+ "<tr><td>权属人</td><td>${QSR}:${QSRNAME}</td></tr><tr><td>联系方式</td><td>${TELL}</td></tr>"
					+ "<tr><td>保证金(万元)</td><td>${BZJ}</td></tr><tr><td>总地价(万元)</td><td>${LANDVALUE}</td></tr>"
					+ "<tr><td>预计签约时间</td><td>${YJQYSJ:DateFormat(datePattern:'yyyy-MM-dd ', selector:'date')}</td></tr><tr><td>实际签约时间</td><td>${SJQYSJ:DateFormat(datePattern:'yyyy-MM-dd ', selector:'date')}</td></tr>"
					+ "<tr><td>备注</td><td>${BZ}</td></tr>"+"</table>"+"<span><input type='button' onclick='var $this=window;$this.MapLayerResourceWidget.editInfoWindow(${OBJECTID});' value='编辑' id='edit'/></span>"+"<span><input type='button' onclick='var $this=window;$this.MapLayerResourceWidget.deleteInfoWindow(${OBJECTID},0);' value='删除' id='delete'></span>"
		},
		fieldmap : {
			"LANDBH" : "LANDBH",
			"CITY" : "CITY",
			"DISTRICT" : "DISTRICT",
			"ZHENJIE" : "ZHENJIE",
			"ADDRESS" : "ADDRESS",
		    "PROJECTTYPE":"PROJECTTYPE",
		    "EXPENDTYPE":"EXPENDTYPE",
		    "TGXX":"TGXX",
		    "KGXX":"KGXX",
		    "XZJSXX":"XZJSXX",
		    "VOLUMERATIO":"VOLUMERATIO",
		    "OWNERSHIP":"OWNERSHIP",
		    "COMPANY":"COMPANY",
		    "LICENCE":"LICENCE",
		    "QSR":"QSR",
		    "QSRNAME":"QSRNAME",
		    "TELL":"TELL",
		    "BZJ":"BZJ",
		    "LANDVALUE":"LANDVALUE",
		    "BZ":"BZ"
		}	
	},
    LANDNOTE:{//土地备注，领导也要能看到下属的备注
    	usefeaturelayer:true,
    	layerurl:"http://AnPengTao:6080/arcgis/rest/services/SDDC/LANDNOTE/FeatureServer/0",
    	selectField : "NOTEUSERNAME",
    	levelshow:false,
    	maplayerinfo:{},
    	template : {
			"title" : "<p>土地备注</p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
				    +"<tr><td style='width:80px'>备注类型</td><td>${LANDTYPE}</td></tr>"
					+ "<tr><td>备注</td><td>${NOTE}</td></tr>"
					+ "<tr><td>备注人</td><td>${NOTEUSERNAME}</td></tr>"
					+ "<tr><td>备注时间</td><td>${NOTEDATE:DateFormat(datePattern:'yyyy-MM-dd ', selector:'date')}</td></tr>"
					+ "</table>"+"<span><input type='button' onclick='var $this=window;$this.MapLayerResourceWidget.deleteInfoWindow(${OBJECTID},1);' value='删除' id='delete'></span>"
		},
    },
    /*********土地类型图层********************************************************/
    //旧厂房
	JCFFL3 : {
		usefeaturelayer:true,
		layerurl : "http://localhost:6080/arcgis/rest/services/SDDC/JettySddC/FeatureServer/7",
		levelshow:true,
		selectField : "FQMC",
		maplayerinfo:{
			serviceid:"SJWK",
			url:"http://localhost:6080/arcgis/rest/services/SDDC/JettySddC/MapServer",// 旧厂房
			sublyidx:7,
			level:9
		},
		template : {
			"title" : "<p>旧厂房</p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
				    +"<tr><td>座楼单位名称</td><td>${ZLDWMC}</td></tr>"
					+ "<tr><td>图斑编号</td><td>${XMDKBH}</td></tr><tr><td>改造类型</td><td>${GZLX}</td></tr>"
					+ "<tr><td style='width:110px'>所在地区</td><td >${CSMC}${FQMC}</td></tr>"
					+ "<tr><td>权属单位名称</td><td >${QSDWMC}</td></tr>"
					+ "<tr><td>现土地用途</td><td>${TDYT}</td></tr><tr><td>规划用途</td><td>${GHYT}</td></tr>"
					+ "<tr><td>拟改造用途</td><td>${NGZYT}</td></tr><tr><td>是否规划</td><td>${SFBZGH}</td></tr>"
					+ "<tr><td >用地面积(m²)</td><td>${YDMJ:numberFormate}</td></tr><tr><td >其中国有面积</td><td>${GYMJ:numberFormate}</td></tr>"
					+ "<tr><td>其中集体面积</td><td>${JTMJ:numberFormate}</td></tr><tr><td >其中农用地面积</td><td>${NYDMJ:numberFormate}</td></tr>"
					+ "<tr><td style='width:110px'>其中合法用地面积</td><td>${HFYDMJ:numberFormate}</td></tr>"
					+ "<tr><td>计划改造年份</td><td>${JHGZNF}</td></tr><tr><td>旧厂房年份</td><td>${JCFNF}</td></tr>"
					+ "</table>"
		},
		fieldmap : {
			"LANDBH" : "XMDKBH",
			"CITY" : "CSMC",
			"DISTRICT" : "FQMC"
		}
	},
	//旧城镇
	JCHFL3 : {
		usefeaturelayer:true,
		layerurl : "http://localhost:6080/arcgis/rest/services/SDDC/JettySddC/FeatureServer/6",
		levelshow:true,
		selectField : "FQMC",
		maplayerinfo:{
			serviceid:"SJWK",
			url:"http://localhost:6080/arcgis/rest/services/SDDC/JettySddC/MapServer",
			sublyidx:6,
			level:9
		},
		template : {
			"title" : "<p>旧城镇</p>",
			"content" : "<table style='font-size:13px;' class='layerInfo' class='layerInfo'>"
				    +"<tr><td>座楼单位名称</td><td>${ZLDWMC}</td></tr>"
					+ "<tr><td>图斑编号</td><td>${XMDKBH }</td></tr><tr><td>改造类型</td><td>${GZLX}</td></tr>"
					+ "<tr><td style='width:60px;'>所在地区</td><td >${CSMC}${FQMC}</td></tr>"
					+ "<tr><td>权属单位名称</td><td >${QSDWMC}</td></tr>"
					+ "<tr><td>现土地用途</td><td>${TDYT}</td></tr><tr><td>规划用途</td><td>${GHYT}</td></tr>"
					+ "<tr><td>拟改造用途</td><td>${NGZYT}</td></tr><tr><td>是否规划</td><td>${SFBZGH}</td></tr>"
					+ "<tr><td style='width:100px'>用地面积(m²)</td><td>${YDMJ:numberFormate}</td></tr><tr><td>其中国有面积</td><td>${GYMJ:numberFormate}</td></tr>"
					+ "<tr><td>其中集体面积</td><td>${JTMJ}</td></tr><tr><td>其中农用地面积</td><td>${NYDMJ:NumberFormat}</td></tr>"
					+ "<tr><td style='width:120px'>其中合法用地面积</td><td>${HFYDMJ:numberFormate}</td></tr>"
					+ "<tr><td>计划改造年份</td><td>${JHGZNF}</td></tr><tr><td>旧厂房年份</td><td>${JCFNF}</td></tr>"
					+ "</table>"
		},
		fieldmap : {
			"LANDBH" : "XMDKBH",
			"CITY" : "CSMC",
			"DISTRICT" : "FQMC",
		}
	},
	//旧村庄
	JCUFL3 : {
		usefeaturelayer:true,
		layerurl : "http://localhost:6080/arcgis/rest/services/SDDC/JettySddC/FeatureServer/5",
		levelshow:true,
		selectField : "FQMC",
		maplayerinfo:{
			serviceid:"SJWK",
			url:"http://localhost:6080/arcgis/rest/services/SDDC/JettySddC/MapServer",
			sublyidx:5,
			level:9
		},
		template : {
			"title" : "<p>旧村庄</p>", 
			"content" : "<table  style='font-size:13px;' class='layerInfo'>"
				    +"<tr><td>座楼单位名称</td><td>${ZLDWMC}</td></tr>"
					+ "<tr><td>图斑编号</td><td>${XMDKBH}</td></tr><tr><td>改造类型</td><td>${GZLX}</td></tr>"
					+ "<tr><td >所在地区</td><td >${CSMC}${FQMC}</td></tr>"
					+ "<tr><td style='width:100px'>权属单位名称</td><td >${QSDWMC}</td></tr>"
					+ "<tr><td>现土地用途</td><td>${TDYT}</td></tr><tr><td>规划用途</td><td>${GHYT}</td></tr>"
					+ "<tr><td >拟改造用途</td><td>${NGZYT}</td></tr><tr><td>是否规划</td><td>${SFBZGH}</td></tr>"
					+ "<tr><td>用地面积(m²)</td><td>${YDMJ:numberFormate}</td></tr><tr><td>其中国有面积</td><td>${GYMJ:numberFormate}</td></tr>"
					+ "<tr><td >其中集体面积</td><td>${JTMJ:numberFormate}</td></tr><tr><td >其中农用地面积</td><td>${NYDMJ:numberFormate}</td></tr>"
					+ "<tr><td style='width:110px'>其中合法用地面积</td><td>${HFYDMJ:numberFormate}</td></tr>"
					+ "<tr><td >计划改造年份</td><td>${QSR}:${JHGZNF}</td></tr><tr><td >旧村庄年份</td><td>${JCFNF}</td></tr>"
					+ "</table>"
		},
		fieldmap : {
			"LANDBH" : "XMDKBH",
			"CITY" : "CSMC",
			"DISTRICT" : "FQMC",
		}
	},
	//国有储备（计划供地）
	JHGD : {
		usefeaturelayer:true,
		layerurl : "http://localhost:6080/arcgis/rest/services/SDDC/JettySddC/FeatureServer/4",
		levelshow:false,
		selectField : "FQMC",
		maplayerinfo:{},
		template : {
			"title" : "<p>计划供地<p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
					+ "<tr><td style='width:60px;'>所在地区</td><td >${CSMC}${FQMC}${ZJMC}</td></tr>"
					+ "<tr><td>用地面积(平方米)</td><td>${YDMJ:numberFormate} </td></tr>"
					+ "<tr><td>编号</td><td>${ID}</td></tr>" + "</table>"
		}
	},
	//留用地
	LYD : {
		usefeaturelayer:true,
		layerurl : "http://localhost:6080/arcgis/rest/services/SDDC/JettySddC/FeatureServer/1",
		levelshow:false,
		selectField : "FQMC",
		maplayerinfo:{},
		template : {
			"title" : "<p>留用地</p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
					+ "<tr><td style='width:60px;'>所在地区</td><td >${CSMC}${FQMC}${ZJMC}</td></tr>"
					+ "<tr><td>村(社区)名</td><td>${CMC}</td></tr><tr><td>所有权性质</td><td>${SYQXZ}</td></tr>"
					+ "<tr><td>权属单位</td><td>${QSDW}</td></tr>"
					+ "<tr><td>现状用途</td><td>${XZYT}</td></tr><tr><td>面积(m²)</td><td>${MJ:numberFormate}</td></tr>"
					+ "<tr><td>选址文号</td><td>${WH}</td></tr><tr><td style='width:100px'>土地发证文号</td><td>${PWH}</td></tr>"
					+ "<tr><td>地址</td><td>${DZ}</td></tr>"
					+ "<tr><td>备注</td><td>${BZ}</td></tr>"
					+ "<tr><td>标注</td><td>${QSR}:${BZ2}</td></tr>" + "</table>"
		},
		fieldmap : {
			"CITY" : "CSMC",
			"DISTRICT" : "FQMC",
			"ZHENJIE" : "ZJMC",
			"ADDRESS" : "DZ",
			"EXPENDTYPE" : "XZYT",
			"COMPANY" : "COMPANY",
			"LICENCE" : "PWH",
		}
	},
	//国有土地
	GYTD : {
		usefeaturelayer:true,
		layerurl : "http://localhost:6080/arcgis/rest/services/SDDC/JettySddC/FeatureServer/8",
		levelshow:false,
		selectField : "FQMC",
		maplayerinfo:{},
		template : {
			"title" : "<p>${BZ2}<p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
					+ "<tr><td style='width:60px;'>所在地区</td><td >${CSMC}${FQMC}${ZJMC}</td></tr>"
					+ "<tr><td>权利人名称</td><td>${QLRMC}</td></tr>"
					+ "<tr><td>地址</td><td>${TDZL}</td></tr>"
					+ "<tr><td>土地用途</td><td>${TDYT}</td></tr>"
					+ "<tr><td>面积(平方米)</td><td>${MJ:numberFormate}</td></tr>"
					+ "<tr><td>确权信息</td><td>${QQMJ}</td></tr>" + "</table>"
		}
	},
	//集体用地
	JTYD : {
		usefeaturelayer:true,
		layerurl : "http://localhost:6080/arcgis/rest/services/SDDC/JettySddC/FeatureServer/3",
		levelshow:false,
		selectField : "FQMC",
		maplayerinfo:{},
		template : {
			"title" : "<p>${BZ2}<p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
					+ "<tr><td style='width:60px;'>所在地区</td><td >${CSMC}${FQMC}${ZJMC}</td></tr>"
					+ "<tr><td>地址证号</td><td>${TDZH}</td></tr>"
					+ "<tr><td>权利人名称</td><td>${QLRMC}</td></tr>"
					+ "<tr><td>地址</td><td>${TDZL}</td></tr>"
					+ "<tr><td>面积(平方米)</td><td>${MJ:numberFormate}</td></tr>" + "</table>"
		}
	},
	//控规
	KG : {
		usefeaturelayer:true,
		layerurl : "http://localhost:6080/arcgis/rest/services/SDDC/KG/FeatureServer/0",
		selectField : "FQMC",
		levelshow:true,
		maplayerinfo:{
		    serviceid:"KGMapServer", 
			sublyidx:-1,
			url:"http://localhost:6080/arcgis/rest/services/SDDC/KG/MapServer",// 控规
			level:9
		},
		template : {
			"title" : "<p>${BZ2}<p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
					+ "<tr><td style='width:60px;'>所在地区</td><td >${CSMC}${FQMC}${ZJMC}</td></tr>"
					+ "<tr><td>控规分类(大)</td><td>${KGFLDL}</td></tr>"
					+ "<tr><td>控规分类(中)</td><td>${KGFLZL}</td></tr>"
					+ "<tr><td>控规分类(小)</td><td>${KGFLXL}</td></tr>"
					+ "<tr><td>用地面积</td><td>${YDMJ:numberFormate}</td></tr>"
					+ "<tr><td>中文用地性质</td><td>${ZWYDXZ}</td></tr>" + "</table>"
		}
	},
	//土规
	TG : {
		usefeaturelayer:true,
		layerurl : "http://localhost:6080/arcgis/rest/services/SDDC/TG/FeatureServer/0",// 土规
		selectField : "FQMC",
		levelshow:true,
		maplayerinfo:{
			serviceid:"TGMapServer", 
			sublyidx:-1,
			url:"http://localhost:6080/arcgis/rest/services/SDDC/TG/MapServer",// 土规
			level:10
		},
		template : {
			"title" : "<p>${BZ2}<p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
					+ "<tr><td style='width:60px;'>所在地区</td><td >${CSMC}${FQMC}${ZJMC}</td></tr>"
					+ "<tr><td>土规分类(大)</td><td>${TGFLDL}</td></tr>"
					+ "<tr><td>土规分类(小)</td><td>${TGFLXL}</td></tr>"
					+ "<tr><td>用地面积</td><td>${YDMJ:numberFormate}</td></tr>"
					+ "<tr><td>ZJMC </td><td>${ZJMC}</td></tr>" + "</table>"
		}

	},
	
	/*************轨道交通图层数据*******************************************************************/
	//轨道线路
	GDJTL : {
		usefeaturelayer:true,
		layerurl : "http://localhost:6080/arcgis/rest/services/SDDC/GDJT/FeatureServer/1",// 地铁线路
		levelshow:true,
		maplayerinfo:{
			serviceid:"GDJTMapServer",
			url:"http://localhost:6080/arcgis/rest/services/SDDC/GDJT/MapServer",// 轨道交通线路
			sublyidx:1,
			level:9
		},
		template : {
			"title" : "<p>地铁线路<p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
					+ "<tr><td style='width:60px;'>所在地区</td><td >${CSMC}${FQMC}</td></tr>"
					+ "<tr><td>建设动态</td><td>${JSDT}</td></tr>" + "<tr><td>线路名称</td><td>${GDXLMC}</td></tr>"+"</table>"
		},
	},
	//轨道站点
	GDJTP : {
		usefeaturelayer:true,
		layerurl : "http://oracle-pc:6080/arcgis/rest/services/SDDCGIS/GDJT/FeatureServer/1",// 地铁站点
		levelshow:true,
		maplayerinfo:{
			serviceid:"GDJTMapServer",
			url:"http://oracle-pc:6080/arcgis/rest/services/SDDCGIS/GDJT/MapServer",// 轨道交通站点
			sublyidx:0,
			level:9
		},
		template : {
			"title" : "<p>地铁站点"
				+"<a style='display:none;cursor:pointer;float:right;padding-right:15px;text-decoration:none;' onclick='templateInfoRestore(this);'>复原</a>"
				+"<a style='cursor:pointer;float:right;padding-right:15px;text-decoration:none;' onclick='templateInfoRightMove(this);'>右移</a>"
				+"</p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
					+ "<tr><td style='width:60px;'>所在地区</td><td >${CSMC}${FQMC}</td></tr>"
					+ "<tr><td>建设动态</td><td>${JSDT}</td></tr>" +"<tr><td>站点名称</td><td>${ZDMC}</td></tr>"+"</table>"                
		},
	},
	/*************高速公路图层数据*******************************************************************/
	//高速公路线图层
	HighWay : {
		usefeaturelayer:true,
		layerurl : "http://localhost:6080/arcgis/rest/services/SDDC/GSGL/FeatureServer/1",// 高速公路
		levelshow:true,
		maplayerinfo:{
			serviceid:"GSGLMapServer",
			url:"http://localhost:6080/arcgis/rest/services/SDDC/GSGL/MapServer",// 高速公路
			sublyidx:1,
			level:9
		},
		template : {
			"title" : "<p>${GDXLMC}<p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
					+ "<tr><td style='width:60px;'>所在地区</td><td >${CSMC}${FQMC}</td></tr>"
					+ "<tr><td>建设动态</td><td>${JSDT}</td></tr>" + "<tr><td>线路名称</td><td>${GDXLMC}</td></tr>"+"</table>"
		}
	},
	//高速出入口图层
	HighWaySite : {
		usefeaturelayer:true,
		layerurl:"http://localhost:6080/arcgis/rest/services/SDDC/GSGL/FeatureServer/0",// 高速出入口
		levelshow:true,
		maplayerinfo:{
			serviceid:"GSGLMapServer",
			url:"http://localhost:6080/arcgis/rest/services/SDDC/GSGL/MapServer",// 高速出入口
			sublyidx:0,
			level:9
		},		
		template : {
			"title" : "<p>地铁站点<p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
					+ "<tr><td style='width:60px;'>所在地区</td><td >${CSMC}${FQMC}</td></tr>"
					+ "<tr><td>建设动态</td><td>${JSDT}</td></tr>" +"<tr><td>站点名称</td><td>${ZDMC}</td></tr>"+"</table>"
		},
	},

   /**********行政区界**************************************************/
	//市界
   SJJX:{
		usefeaturelayer:true,
		layerurl:  "http://10.1.10.230:6080/arcgis/rest/services/SLdata/CX2016new/FeatureServer/2",//市界
		levelshow:true,
		maplayerinfo:{
			serviceid:"SQZJMapServer",
			url:"http://192.168.120.121:6080/arcgis/rest/services/SDDC/JettySddC/MapServer",// 市界
			sublyidx:2,
			level:-1
		},
		template : {
			"title" : "<p>${CSMC}<p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
				     +"<tr><td>城市名称</td><td>${CSMC}</td></tr>"+"</table>"
		}
	},	
	//区界
	HZQJ:{
		usefeaturelayer:true,
		layerurl:"http://localhost:6080/arcgis/rest/services/SDDC/HZQJ/FeatureServer/0",//  区界
		levelshow:true,
		selectField : "FQMC",
		maplayerinfo:{
			serviceid:"SQZJMapServer",
			url:"http://localhost:6080/arcgis/rest/services/SDDC/HZQJ/MapServer",// 区界
			sublyidx:-1,
			level:9
		},
		template : {
			"title" : "<p>${FQMC }<p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
					+ "<tr><td style='width:60px;'>分区名称</td><td>${FQMC}</td></tr>"
					+ "<tr><td>城市名称</td><td>${CSMC}</td></tr>"+"</table>"                
		},
	},
	//镇界
//	XZJX:{
//		usefeaturelayer:false,
//		layerurl : "http://10.1.10.230:6080/arcgis/rest/services/SLdata/CX2016new/FeatureServer/4",// 镇界
//		levelshow:true,
//		maplayerinfo:{
//			serviceid:"SQZJMapServer",
//			url:"http://192.168.120.121:6080/arcgis/rest/services/SDDC/JettySddC/MapServer",// 镇界
//			sublyidx:4,
//			level:-1
//		},
//		template : {
//			"title" : "<p>${ZJMC}<p>",
//			"content" : "<table style='font-size:13px;' class='layerInfo'>"
//				     +"<tr><td>镇名称</td><td>${ZJMC}</td></tr>"
//					+ "<tr><td style='width:60px;'>所在地区</td><td >${CSMC}${FQMC}</td></tr>"
//					+ "<tr><td>镇面积</td><td>${ZMJ}</td></tr>" + "</table>"
//		}
//	}
	//在售及未售项目
	ZSJWSXM:{
		usefeaturelayer:true,
		layerurl:"http://localhost:6080/arcgis/rest/services/SDDC/HZQJ/FeatureServer/0",//  区界
		levelshow:true,
		selectField : "FQMC",
		maplayerinfo:{
			serviceid:"SQZJMapServer",
			url:"http://localhost:6080/arcgis/rest/services/SDDC/HZQJ/MapServer",// 区界
			sublyidx:-1,
			level:9
		},
		template : {
			"title" : "<p>${FQMC }<p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
					+ "<tr><td style='width:60px;'>分区名称</td><td>${FQMC}</td></tr>"
					+ "<tr><td>城市名称</td><td>${CSMC}</td></tr>"+"</table>"                
		},
	},
	//短期项目
	DQXM:{
		usefeaturelayer:true,
		layerurl:"http://localhost:6080/arcgis/rest/services/SDDC/HZQJ/FeatureServer/0",//  区界
		levelshow:true,
		selectField : "FQMC",
		maplayerinfo:{
			serviceid:"SQZJMapServer",
			url:"http://localhost:6080/arcgis/rest/services/SDDC/HZQJ/MapServer",// 区界
			sublyidx:-1,
			level:9
		},
		template : {
			"title" : "<p>${FQMC }<p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
					+ "<tr><td style='width:60px;'>分区名称</td><td>${FQMC}</td></tr>"
					+ "<tr><td>城市名称</td><td>${CSMC}</td></tr>"+"</table>"                
		},
	},
	//中长期期项目
	ZCQXM:{
		usefeaturelayer:true,
		layerurl:"http://localhost:6080/arcgis/rest/services/SDDC/HZQJ/FeatureServer/0",//  区界
		levelshow:true,
		selectField : "FQMC",
		maplayerinfo:{
			serviceid:"SQZJMapServer",
			url:"http://localhost:6080/arcgis/rest/services/SDDC/HZQJ/MapServer",// 区界
			sublyidx:-1,
			level:9
		},
		template : {
			"title" : "<p>${FQMC }<p>",
			"content" : "<table style='font-size:13px;' class='layerInfo'>"
					+ "<tr><td style='width:60px;'>分区名称</td><td>${FQMC}</td></tr>"
					+ "<tr><td>城市名称</td><td>${CSMC}</td></tr>"+"</table>"                
		},
	},
};
var TZGKfieldSelectOptions = {
		"TGXX":[{value:"建设用地",text:"建设用地"},
		        {value:"非建设用地",text:"非建设用地"}],
		"KGXX":[{value:"R（居住用地）",text:"R（居住用地）"},
		        {value:"B（商业服务业设施用地）",text:"B（商业服务业设施用地）"},
		        {value:"A（公共管理与公共服务用地）",text:"A（公共管理与公共服务用地）"},
		        {value:"M（工业用地）",text:"M（工业用地）"},
		        {value:"W（物流仓储用地）",text:"W（物流仓储用地）"},
		        {value:"S（交通设施用地）",text:"S（交通设施用地）"},
		        {value:"U（公共市政设施用地）",text:"U（公共市政设施用地）"},
		        {value:"G（绿地）",text:"G（绿地）"},
		        {value:"H14（村用地）",text:"H14（村用地）"}],
		"XMSX":[{value:"短期",text:"短期"},
		        {value:"中长期",text:"中长期"}],
		"TZFS":[{value:"股权收购",text:"股权收购"},
		        {value:"旧厂改造",text:"旧厂改造"},
		        {value:"旧村改造",text:"旧村改造"},
		        {value:"旧城改造",text:"旧城改造"},
		        {value:"招拍挂",text:"招拍挂"},
		        {value:"村自留地项目",text:"村自留地项目"},
		        {value:"经济发展用地",text:"经济发展用地"},
		        {value:"留用地",text:"留用地"},
		        {value:"其他",text:"其他"}],
		"XMLX":[{value:"股权收购",text:"股权收购"},
		        {value:"短期股权收购",text:"短期股权收购"},
		        {value:"征地返还地",text:"征地返还地"},
		        {value:"短期股权收购",text:"短期股权收购"},
		        {value:"留用地+集体建设用地",text:"留用地+集体建设用地"},
		        {value:"集体旧厂",text:"集体旧厂"},
		        {value:"集体用地",text:"集体用地"},
		        {value:"资产转让",text:"资产转让"},
		        {value:"自留地",text:"自留地"},
				{value:"旧厂改造",text:"旧厂改造"},
				{value:"旧村改造",text:"旧村改造"},
				{value:"旧城改造",text:"旧城改造"},
				{value:"招拍挂",text:"招拍挂"},
				{value:"村自留地项目",text:"村自留地项目"},
				{value:"经济发展用地",text:"经济发展用地"},
				{value:"留用地",text:"留用地"},
				{value:"其他",text:"其他"}],		        
		"XMJD":[{value:"核查项目",text:"核查项目"},
		        {value:"洽谈项目",text:"洽谈项目"},
		        {value:"获取项目",text:"获取项目"}]
};
var poiSearchResultFieldCNTable = {
		"objectid":"编号",
		"name":"名称",
		"address":"地址",
		"typecode":"类型编号",
		"typename":"类型",
		"citycode":"城市",
		"telephone":"电话",
		"lon":"经度",
		"lat":"纬度"
};
var templateInfoRightMove = function(obj){
	debugger
	window.currentShowTemplateInitalPos={
			"obj":obj,
			"initRight":$(window).width()-parseInt($(obj).closest('.esriPopupVisible').css("left")),
			"intTop":parseInt($(obj).closest('.esriPopupVisible').css("top")),
			"rightOffset":0,
			"topOffset":0,
			"fixRight":Global.widgets.right.hasExpand?(Global.widgets.right.panelWidth+300):300,
			"fixTop":140
	}
	$(obj).closest('.esriPopupVisible').css("left",'initial');
	$(obj).closest('.esriPopupVisible').css("right",window.currentShowTemplateInitalPos.fixRight+'px');
	$(obj).closest('.esriPopupVisible').css("top",window.currentShowTemplateInitalPos.fixTop+'px');
	$(obj).css("display","none");
	$(obj).prev().css("display","block");
	
	$(obj).closest('.titlePane').children('.close').click(function(){
		$(obj).closest('.esriPopupVisible').hide();
		if(window.extentChangeEvt){
			window.extentChangeEvt.remove();
		}
	});
	window.currentMapLevel=Global.widgets.mapWidget.map.getLevel();
	window.extentChangeEvt=Global.widgets.mapWidget.map.on("extent-change", function(evt){
		 if(Global.widgets.mapWidget.map.getLevel() != window.currentMapLevel){
			 window.currentMapLevel=Global.widgets.mapWidget.map.getLevel();
			 templateInfoRightMove(window.currentShowTemplateInitalPos.obj);
		 }else{
			  var right=parseInt($(window.currentShowTemplateInitalPos.obj).closest('.esriPopupVisible').css("right"));
			  var top=parseInt($(window.currentShowTemplateInitalPos.obj).closest('.esriPopupVisible').css("top"));
			  var rightOffset=right-window.currentShowTemplateInitalPos.fixRight;
			  var topOffset=top-window.currentShowTemplateInitalPos.fixTop;
			  window.currentShowTemplateInitalPos.rightOffset+=rightOffset;
			  window.currentShowTemplateInitalPos.topOffset+=topOffset;
			  $(window.currentShowTemplateInitalPos.obj).closest('.esriPopupVisible').css("right",window.currentShowTemplateInitalPos.fixRight+'px');
			  $(window.currentShowTemplateInitalPos.obj).closest('.esriPopupVisible').css("top",window.currentShowTemplateInitalPos.fixTop+'px');
			  $(window.currentShowTemplateInitalPos.obj).closest('.esriPopupVisible').css("left",'initial');
		  }
		  
	});
}
var templateInfoRestore = function(obj){
	debugger
	var restoreRight=window.currentShowTemplateInitalPos.initRight+window.currentShowTemplateInitalPos.rightOffset;
	var restoreTop=window.currentShowTemplateInitalPos.intTop+window.currentShowTemplateInitalPos.topOffset;
	$(obj).closest('.esriPopupVisible').css("right",restoreRight+'px');
	$(obj).closest('.esriPopupVisible').css("top",restoreTop+'px');
	$(obj).css("display","none");
	$(obj).next().css("display","block");
	//取消这个事件的绑定
	if(window.extentChangeEvt){
		window.extentChangeEvt.remove();
	}
}